package com.aric.springbootmusic.entity.pojo;

import com.aric.springbootmusic.entity.pojo.BaseClass;
import com.aric.springbootmusic.entity.pojo.Role;
import com.aric.springbootmusic.enums.UserStatus;
import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Builder
@Data
@AllArgsConstructor
@NoArgsConstructor

@TableName(value="user")
public class User extends BaseClass {
    @TableId(type= IdType.ASSIGN_ID)
    private String id;
    private String username;
    private String password;
    private String nickname;
    private String email;
    private String phoneNumber;
    private UserStatus status;
    private Integer roleId;
    @TableLogic(value= "0",delval= "1")
    private Integer isDelete;
    @TableField(exist=false)
    private Role role;
}
